package com.yanhui.utils.base;

/**
 * @Description 系统工具类
 * @Author yanhui
 * @Date 2018-11-12 9:43
 */
public class _systemUtils {

    public static String getSystemPath(String winPath, String linuxPath){
        if(isWinSys()){
            return winPath;
        }
        return linuxPath;
    }

    public static boolean isWinSys(){
        String os = System.getProperty("os.name");
        if(os.toLowerCase().startsWith("win")){
            return true;
        }
        return false;
    }
}
